import { service } from './request';

export function insertAll(data) {
  return service({
    url: '/book/insertAll',
    method: 'post',
    data: data
  });
}

export function queryById(params = {}) {
  return service({
    url: '/book/queryById',
    method: 'get',
    params: params
  });
}

export function updateBook(data) {
  return service({
    url: '/book/update',
    method: 'post',
    data: data
  });
}

export function deleteBook(data) {
  return service({
    url: '/book/delete',
    method: 'post',
    data: data
  });
}

export function changeStatus(data) {
  return service({
    url: '/book/changeStatus',
    method: 'post',
    data: data
  });
}
